package com.ktg.mes.wm.domain;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ktg.mes.util.LeftJoin;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity;

/**
 * 仓库设置对象 wm_warehouse
 *
 * @author yinjinlu
 * @date 2022-05-07
 */
@Data
@Accessors(chain = true)
@TableName("wm_warehouse")
public class WmWarehouse extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static final String mainColumnNotId = "warehouse_code,warehouse_name";

    /** 仓库ID */
    @TableId(value = "warehouse_id", type = IdType.AUTO)
    private Long warehouseId;

    /** 仓库编码 */
    @Excel(name = "仓库编码")
    private String warehouseCode;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 位置 */
    @Excel(name = "位置")
    private String location;

    /** 面积 */
    @Excel(name = "面积")
    private BigDecimal area;

    /** 负责人 */
    @Excel(name = "负责人")
    private String charge;


    /** 预留字段1 */
    private String attr1;

    /** 预留字段2 */
    private String attr2;

    /** 预留字段3 */
    private Long attr3;

    /** 预留字段4 */
    private Long attr4;

    /** 仓库颜色 */
    private String stockColor;

    /** 排序 */
    private Integer sort;


    /** 归属部门id */
    private Long deptId;

    /**  部门名称 */
    @TableField(exist = false)
    private String deptName;

    /**
     * 是否保密
     */
    private String confidentiality;

    @TableField(exist = false)
    private List<WmStorageLocation> children;


}
